import * as type from '../mutation-type'

const initState = {
  articles: [],

  article: {
    id: null,
    title: null,
    author: null,           
    image: null, 
    content: null,   
    order_index: null,               
    hidden: null,       
  }
}

const state = _.cloneDeep(initState)

const mutations = {
  // 列表
  [type.GET_ARTICLES] (state, {articles,article }) {
    state.articles = articles
    state.article = article
  },
}

export default {
  state,
  mutations
}
